package priv.menguer.singleton;

/**
 * @Title Singleton4.java
 * @description 杩�绉��瑰����ㄥ�����哄�讹�瀹��ㄤ��ㄥ�绾跨����典��戒���楂��ц�姐�� getInstance() ���ц�藉�瑰��ㄧ�搴�寰��抽����
 * @time 2018骞�10��25�� 涓���5:30:28
 * @author menguer@126.com
 * @version 1.0
 */
public class Singleton4 {
	private volatile static Singleton4 singleton;

	private Singleton4() {
	}

	public static Singleton4 getSingleton() {
		if (singleton == null) {
			synchronized (Singleton4.class) {
				if (singleton == null) {
					singleton = new Singleton4();
				}
			}
		}
		return singleton;
	}
}
